<template>
	<view class="content">
		<view class="nick_name" v-if="nickName">
			欢迎您, {{nickName}}
		</view>
		<view class="personal nav_btn"  @click="handNav('index/index')">
			<view class="personal_left">
				<u-icon name="plus" size='40'></u-icon>
				<view class="account">
					提交审核单
				</view>
			</view>
			<u-icon name="arrow-right" size="40"></u-icon>
		</view>
		<view class="enterprise nav_btn" @click="handNav('formList/formList')">
			<view class="personal_left">
				<u-icon name="eye" size='40'></u-icon>
				<view class="account">
					查看审核单
				</view>
			</view>
			<u-icon name="arrow-right" size="40"></u-icon>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				nickName:''
			}
		},
		onShow() {
			this.nickName = this.cache.getCache('nickName')
		},
		methods: {
			handNav(type) {
				uni.navigateTo({
					url: `/pages/${type}`,
					fail: (err) => {
						console.log(err)
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #f7f7f7;
	}

	.content {
		padding: 60rpx;
		box-sizing: border-box;
		.nick_name{
			font-size: 36rpx;
			
		}
		.personal {	
			margin-top: 90rpx;
			margin-bottom: 50rpx;
		}

		.nav_btn {
			width: 100%;
			height: 160rpx;
			border: 1rpx solid #E4E7ED;
			border-radius: 12rpx;
			background-color: #fff;
			display: flex;
			padding: 60rpx;
			box-sizing: border-box;
			align-items: center;
			justify-content: space-between;

			.personal_left {
				display: flex;
				align-items: center;

				.account {
					font-size: 36rpx;
					margin-left: 40rpx;
				}
			}
		}
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
